import request from "@/axios";

export default {
    get: option => {
      return request({ method: 'get', ...option }) 
    },
    post: option => {
      return request({ method: 'post', ...option }) 
    },
    delete: option => {
      return request({ method: 'delete', ...option }) 
    },
    put: option => {
      return request({ method: 'put', ...option }) 
    },
    cancelRequest: (url) => {
      return service.cancelRequest(url)
    },
    cancelAllRequest: () => {
      return service.cancelAllRequest()
    }
  }
  